package top.superflow.core.metadata.category

import top.superflow.core.utils.StringConstant

trait Category {
  
  def getName : String
  
  def getDescription : String
  
  def getParent : Category 
  
  def getFullCategory : String = {
    val sbd : StringBuilder = new StringBuilder()
    sbd.append(this.getName)
    if(this.getParent != null){
      sbd.insert(0, StringConstant.SLASH)
      sbd.insert(0, getParent.getFullCategory)
    }
    
    sbd.toString
  }
}